TAR=homework4
OBJ=homework4.o basic_func.o insert_sort.o
ASFLAGS+=--32
LDFLAGS+=-m elf_i386

$(TAR):$(OBJ)
	ld $(LDFLAGS) -o $@ $^

%.o:%.S
	as $(ASFLAGS) -o $@ $^

clean:
	$(RM) -r *.o $(TAR)
